import React, {Component} from "react";
import {Switch,Route} from 'react-router-dom';
import ProductHome from './home'
import ProductAddUpdate from "./add-update";
import ProductDetail from "./detail";

/**
 * 商品路由
 */
export default class Product extends Component{

    render(){
        return (
            <Switch>
                <Route path="/product" component={ProductHome} exact></Route>
                <Route path="/product/addupdate" component={ProductAddUpdate}></Route>
                <Route path="/product/detail" component={ProductDetail}></Route>
            </Switch>
        );
    }
}